/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package beans.order;

import beans.person.Company;
import java.util.Date;

/**
 *
 * @author xmarti
 */
public class Order {
   private Date date;
   private int number;
   private Accounting accounting;
   private double sumBase;
   private Company company;   
   private VatRate rate;
   private float taxIRPF;
   private double subvention;
   private String description;

   public Order(){
       
   } 
   public Order(Date date, int number) {
        this.date = date;
        this.number = number;
    }

    public Order(Date date, int number, Accounting accounting, double sumBase, Company company, VatRate rate, float taxIRPF, double subvention, String description) {
        this.date = date;
        this.number = number;
        this.accounting = accounting;
        this.sumBase = sumBase;
        this.company = company;
        this.rate = rate;
        this.taxIRPF = taxIRPF;
        this.subvention = subvention;
        this.description = description;
    }

    public Accounting getAccounting() {
        return accounting;
    }

    public void setAccounting(Accounting accounting) {
        this.accounting = accounting;
    }

    public Company getCompany() {
        return company;
    }

    public void setCompany(Company company) {
        this.company = company;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public VatRate getRate() {
        return rate;
    }

    public void setRate(VatRate rate) {
        this.rate = rate;
    }

    public double getSubvention() {
        return subvention;
    }

    public void setSubvention(double subvention) {
        this.subvention = subvention;
    }

    public double getSumBase() {
        return sumBase;
    }

    public void setSumBase(double sumBase) {
        this.sumBase = sumBase;
    }

    public float getTaxIRPF() {
        return taxIRPF;
    }

    public void setTaxIRPF(float taxIRPF) {
        this.taxIRPF = taxIRPF;
    }
   
}
